<template>
  <div class="header">
    <router-link to='/city'>
      <div class="header-left">
        {{this.city}}
        <span class="iconfont arrow-icon">&#xe62d;</span>
      </div>
    </router-link>
    <div class="header-input">
      <span class="iconfont back-search">&#xe632;</span>
      输入城市/景点/游玩主题
    </div>
      <div class="header-right">
        <p class="iconfont polson-icon">&#xe62f;</p>
        <p>我的</p>
      </div>
  </div>
</template>

<script>
  import { mapState } from 'vuex'
  export default {
    name: 'Header',
    data(){
      return{

      }
    },computed:{
      ...mapState(['city'])
    }
  }
</script>

<style scoped lang="stylus">
  .header
    display: flex
    line-height: 1.01rem
    background: #06c1ae
    color: #fff
    .header-left
      min-width: .88rem
      padding-left: .17rem
      float: left
      color: #fff
      .arrow-icon
        margin-left: -.04rem
        font-size: .24rem
    .header-input
      flex: 1
      height: .64rem
      line-height: .64rem
      margin-top: .185rem
      margin-left: .2rem
      padding-left: .2rem
      background: rgba(0,0,0,.15)
      border-radius: .1rem
      color: #68dbce
      .back-search
        text-align: center
        color: #fff
    .header-right
      min-width: .75rem
      padding: 0 .1rem
      float: right
      text-align: center
      color: #fff
      margin-top: .1rem
      .arrow-icon
        margin-left: -.04rem
        font-size: .24rem
      p
        font-size: 0.12rem
        line-height: .4rem
    .polson-icon
      font-size: .33rem


</style>
